package cn.zcib.tms.model;

import java.util.ArrayList;
import java.util.List;

public class ServiceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ServiceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSeIdIsNull() {
            addCriterion("se_id is null");
            return (Criteria) this;
        }

        public Criteria andSeIdIsNotNull() {
            addCriterion("se_id is not null");
            return (Criteria) this;
        }

        public Criteria andSeIdEqualTo(Integer value) {
            addCriterion("se_id =", value, "seId");
            return (Criteria) this;
        }

        public Criteria andSeIdNotEqualTo(Integer value) {
            addCriterion("se_id <>", value, "seId");
            return (Criteria) this;
        }

        public Criteria andSeIdGreaterThan(Integer value) {
            addCriterion("se_id >", value, "seId");
            return (Criteria) this;
        }

        public Criteria andSeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("se_id >=", value, "seId");
            return (Criteria) this;
        }

        public Criteria andSeIdLessThan(Integer value) {
            addCriterion("se_id <", value, "seId");
            return (Criteria) this;
        }

        public Criteria andSeIdLessThanOrEqualTo(Integer value) {
            addCriterion("se_id <=", value, "seId");
            return (Criteria) this;
        }

        public Criteria andSeIdIn(List<Integer> values) {
            addCriterion("se_id in", values, "seId");
            return (Criteria) this;
        }

        public Criteria andSeIdNotIn(List<Integer> values) {
            addCriterion("se_id not in", values, "seId");
            return (Criteria) this;
        }

        public Criteria andSeIdBetween(Integer value1, Integer value2) {
            addCriterion("se_id between", value1, value2, "seId");
            return (Criteria) this;
        }

        public Criteria andSeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("se_id not between", value1, value2, "seId");
            return (Criteria) this;
        }

        public Criteria andSeCateIsNull() {
            addCriterion("se_cate is null");
            return (Criteria) this;
        }

        public Criteria andSeCateIsNotNull() {
            addCriterion("se_cate is not null");
            return (Criteria) this;
        }

        public Criteria andSeCateEqualTo(Integer value) {
            addCriterion("se_cate =", value, "seCate");
            return (Criteria) this;
        }

        public Criteria andSeCateNotEqualTo(Integer value) {
            addCriterion("se_cate <>", value, "seCate");
            return (Criteria) this;
        }

        public Criteria andSeCateGreaterThan(Integer value) {
            addCriterion("se_cate >", value, "seCate");
            return (Criteria) this;
        }

        public Criteria andSeCateGreaterThanOrEqualTo(Integer value) {
            addCriterion("se_cate >=", value, "seCate");
            return (Criteria) this;
        }

        public Criteria andSeCateLessThan(Integer value) {
            addCriterion("se_cate <", value, "seCate");
            return (Criteria) this;
        }

        public Criteria andSeCateLessThanOrEqualTo(Integer value) {
            addCriterion("se_cate <=", value, "seCate");
            return (Criteria) this;
        }

        public Criteria andSeCateIn(List<Integer> values) {
            addCriterion("se_cate in", values, "seCate");
            return (Criteria) this;
        }

        public Criteria andSeCateNotIn(List<Integer> values) {
            addCriterion("se_cate not in", values, "seCate");
            return (Criteria) this;
        }

        public Criteria andSeCateBetween(Integer value1, Integer value2) {
            addCriterion("se_cate between", value1, value2, "seCate");
            return (Criteria) this;
        }

        public Criteria andSeCateNotBetween(Integer value1, Integer value2) {
            addCriterion("se_cate not between", value1, value2, "seCate");
            return (Criteria) this;
        }

        public Criteria andSeAreaIsNull() {
            addCriterion("se_area is null");
            return (Criteria) this;
        }

        public Criteria andSeAreaIsNotNull() {
            addCriterion("se_area is not null");
            return (Criteria) this;
        }

        public Criteria andSeAreaEqualTo(String value) {
            addCriterion("se_area =", value, "seArea");
            return (Criteria) this;
        }

        public Criteria andSeAreaNotEqualTo(String value) {
            addCriterion("se_area <>", value, "seArea");
            return (Criteria) this;
        }

        public Criteria andSeAreaGreaterThan(String value) {
            addCriterion("se_area >", value, "seArea");
            return (Criteria) this;
        }

        public Criteria andSeAreaGreaterThanOrEqualTo(String value) {
            addCriterion("se_area >=", value, "seArea");
            return (Criteria) this;
        }

        public Criteria andSeAreaLessThan(String value) {
            addCriterion("se_area <", value, "seArea");
            return (Criteria) this;
        }

        public Criteria andSeAreaLessThanOrEqualTo(String value) {
            addCriterion("se_area <=", value, "seArea");
            return (Criteria) this;
        }

        public Criteria andSeAreaLike(String value) {
            addCriterion("se_area like", value, "seArea");
            return (Criteria) this;
        }

        public Criteria andSeAreaNotLike(String value) {
            addCriterion("se_area not like", value, "seArea");
            return (Criteria) this;
        }

        public Criteria andSeAreaIn(List<String> values) {
            addCriterion("se_area in", values, "seArea");
            return (Criteria) this;
        }

        public Criteria andSeAreaNotIn(List<String> values) {
            addCriterion("se_area not in", values, "seArea");
            return (Criteria) this;
        }

        public Criteria andSeAreaBetween(String value1, String value2) {
            addCriterion("se_area between", value1, value2, "seArea");
            return (Criteria) this;
        }

        public Criteria andSeAreaNotBetween(String value1, String value2) {
            addCriterion("se_area not between", value1, value2, "seArea");
            return (Criteria) this;
        }

        public Criteria andSeNameIsNull() {
            addCriterion("se_name is null");
            return (Criteria) this;
        }

        public Criteria andSeNameIsNotNull() {
            addCriterion("se_name is not null");
            return (Criteria) this;
        }

        public Criteria andSeNameEqualTo(String value) {
            addCriterion("se_name =", value, "seName");
            return (Criteria) this;
        }

        public Criteria andSeNameNotEqualTo(String value) {
            addCriterion("se_name <>", value, "seName");
            return (Criteria) this;
        }

        public Criteria andSeNameGreaterThan(String value) {
            addCriterion("se_name >", value, "seName");
            return (Criteria) this;
        }

        public Criteria andSeNameGreaterThanOrEqualTo(String value) {
            addCriterion("se_name >=", value, "seName");
            return (Criteria) this;
        }

        public Criteria andSeNameLessThan(String value) {
            addCriterion("se_name <", value, "seName");
            return (Criteria) this;
        }

        public Criteria andSeNameLessThanOrEqualTo(String value) {
            addCriterion("se_name <=", value, "seName");
            return (Criteria) this;
        }

        public Criteria andSeNameLike(String value) {
            addCriterion("se_name like", value, "seName");
            return (Criteria) this;
        }

        public Criteria andSeNameNotLike(String value) {
            addCriterion("se_name not like", value, "seName");
            return (Criteria) this;
        }

        public Criteria andSeNameIn(List<String> values) {
            addCriterion("se_name in", values, "seName");
            return (Criteria) this;
        }

        public Criteria andSeNameNotIn(List<String> values) {
            addCriterion("se_name not in", values, "seName");
            return (Criteria) this;
        }

        public Criteria andSeNameBetween(String value1, String value2) {
            addCriterion("se_name between", value1, value2, "seName");
            return (Criteria) this;
        }

        public Criteria andSeNameNotBetween(String value1, String value2) {
            addCriterion("se_name not between", value1, value2, "seName");
            return (Criteria) this;
        }

        public Criteria andSeAddressIsNull() {
            addCriterion("se_address is null");
            return (Criteria) this;
        }

        public Criteria andSeAddressIsNotNull() {
            addCriterion("se_address is not null");
            return (Criteria) this;
        }

        public Criteria andSeAddressEqualTo(String value) {
            addCriterion("se_address =", value, "seAddress");
            return (Criteria) this;
        }

        public Criteria andSeAddressNotEqualTo(String value) {
            addCriterion("se_address <>", value, "seAddress");
            return (Criteria) this;
        }

        public Criteria andSeAddressGreaterThan(String value) {
            addCriterion("se_address >", value, "seAddress");
            return (Criteria) this;
        }

        public Criteria andSeAddressGreaterThanOrEqualTo(String value) {
            addCriterion("se_address >=", value, "seAddress");
            return (Criteria) this;
        }

        public Criteria andSeAddressLessThan(String value) {
            addCriterion("se_address <", value, "seAddress");
            return (Criteria) this;
        }

        public Criteria andSeAddressLessThanOrEqualTo(String value) {
            addCriterion("se_address <=", value, "seAddress");
            return (Criteria) this;
        }

        public Criteria andSeAddressLike(String value) {
            addCriterion("se_address like", value, "seAddress");
            return (Criteria) this;
        }

        public Criteria andSeAddressNotLike(String value) {
            addCriterion("se_address not like", value, "seAddress");
            return (Criteria) this;
        }

        public Criteria andSeAddressIn(List<String> values) {
            addCriterion("se_address in", values, "seAddress");
            return (Criteria) this;
        }

        public Criteria andSeAddressNotIn(List<String> values) {
            addCriterion("se_address not in", values, "seAddress");
            return (Criteria) this;
        }

        public Criteria andSeAddressBetween(String value1, String value2) {
            addCriterion("se_address between", value1, value2, "seAddress");
            return (Criteria) this;
        }

        public Criteria andSeAddressNotBetween(String value1, String value2) {
            addCriterion("se_address not between", value1, value2, "seAddress");
            return (Criteria) this;
        }

        public Criteria andSePhoneIsNull() {
            addCriterion("se_phone is null");
            return (Criteria) this;
        }

        public Criteria andSePhoneIsNotNull() {
            addCriterion("se_phone is not null");
            return (Criteria) this;
        }

        public Criteria andSePhoneEqualTo(String value) {
            addCriterion("se_phone =", value, "sePhone");
            return (Criteria) this;
        }

        public Criteria andSePhoneNotEqualTo(String value) {
            addCriterion("se_phone <>", value, "sePhone");
            return (Criteria) this;
        }

        public Criteria andSePhoneGreaterThan(String value) {
            addCriterion("se_phone >", value, "sePhone");
            return (Criteria) this;
        }

        public Criteria andSePhoneGreaterThanOrEqualTo(String value) {
            addCriterion("se_phone >=", value, "sePhone");
            return (Criteria) this;
        }

        public Criteria andSePhoneLessThan(String value) {
            addCriterion("se_phone <", value, "sePhone");
            return (Criteria) this;
        }

        public Criteria andSePhoneLessThanOrEqualTo(String value) {
            addCriterion("se_phone <=", value, "sePhone");
            return (Criteria) this;
        }

        public Criteria andSePhoneLike(String value) {
            addCriterion("se_phone like", value, "sePhone");
            return (Criteria) this;
        }

        public Criteria andSePhoneNotLike(String value) {
            addCriterion("se_phone not like", value, "sePhone");
            return (Criteria) this;
        }

        public Criteria andSePhoneIn(List<String> values) {
            addCriterion("se_phone in", values, "sePhone");
            return (Criteria) this;
        }

        public Criteria andSePhoneNotIn(List<String> values) {
            addCriterion("se_phone not in", values, "sePhone");
            return (Criteria) this;
        }

        public Criteria andSePhoneBetween(String value1, String value2) {
            addCriterion("se_phone between", value1, value2, "sePhone");
            return (Criteria) this;
        }

        public Criteria andSePhoneNotBetween(String value1, String value2) {
            addCriterion("se_phone not between", value1, value2, "sePhone");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}